package cn.zkld.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

/**
 * Created by 李景辉 on 2017/12/7.
 */
@Controller
public class Base {
    HttpServletRequest request;
    HttpServletResponse response;
    HttpSession session;
    @ModelAttribute
    public void ReqRes(HttpServletRequest request,
                       HttpServletResponse response,
                       HttpSession session){
        this.request=request;
        this.response=response;
        this.session=session;
    }
}
